If your Mac stops asking for password
- Go to the Keychain Access app on your Mac.To open Keychain Access, search for it in Spotlight, then press Return.
- Click “login” in the Keychains list.
- Choose Edit > Change Settings for Keychain “login”.
- Find the “Lock after” tickbox, then untick the box.
- However: if you want to require a password if keychain password is out of sync
- However: If you want to require a password each time the computer goes to sleep, select the “Lock when sleeping” tickbox.
- Click Save.
Source: https://support.apple.com/en-ie/guide/keychain-access/kyca1242/mac